Skip to content

chore(deps): update tera requirement from 1.19 to 2.0#64

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/cargo/develop/tera-2.0
Open

chore(deps): update tera requirement from 1.19 to 2.0#64
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/cargo/develop/tera-2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 29, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on tera to permit the latest version.

Changelog

Sourced from tera's changelog.

2.0.0 (2026-06-26)

see migration guide for all the changes.

1.21.1 (2025-10-30)

  • Replace unmaintained unic-segment dependency

1.20.0 (2024-05-27)

  • Support parenthesis in if statements
  • Allow escaped newline and tab join separator

1.19.1 (2023-09-03)

  • Minimum supported Rust version (MSRV) is now 1.63 due to transitive dependencies.
  • Update crates.io metadata for the website

1.19.0 (2023-05-31)

  • Revert change to glob path to not error if the path doesn't exist
  • Allow macro definition in renderable template

1.18.1 (2023-03-15)

  • Fix panic on invalid globs to Tera::new

1.18.0 (2023-03-08)

  • Add abs filter
  • Add indent filter
  • Deprecate get_json_pointer in favour of dotted_pointer, a faster alternative
  • Always canonicalize glob paths passed to Tera to workaround a globwalk bug
  • Handle apostrophes in title case filter
  • Some performance improvement

1.17.1 (2022-09-19)

  • Make get_random use isize instead of i32 and bad error message
  • Fix variables lookup when the evaluated key has a . or quotes
  • Fix changed output of f64 from serde_json 1.0.85

1.17.0 (2022-08-14)

  • Fix bug where operands in in operation were escaped before comparison
  • Force chrono dep to be 0.4.20 minimum
  • Better support for parenthesis in expression

1.16.0 (2022-06-10)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [tera](https://github.com/Keats/tera) to permit the latest version.
- [Changelog](https://github.com/Keats/tera/blob/master/CHANGELOG.md)
- [Commits](Keats/tera@v1.19.0...v2.0.0)

---
updated-dependencies:
- dependency-name: tera
  dependency-version: 2.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the devops label Jun 29, 2026
@chrome-grid

chrome-grid Bot commented Jun 29, 2026

Copy link
Copy Markdown

🟪🔷 netrunner :: intrusion report

░▒▓ N E T R U N N E R ▓▒░
   🟪 GRID STATUS: FLATLINE   |   netrunner-review: fail

The CI failed due to breaking changes in the Tera 2.0 upgrade. The Result type is no longer available in the tera crate, and filter functions now require an additional argument.


📡 NETWATCH · gate checks

automergesuccess
Code Coveragefailure
Validate Examplesfailure
Test Suitefailure

fault trace:

Test Suite

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:52:77
   |
52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                             ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
52 - fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
52 + fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:74:84
   |
74 | fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                                    ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
74 - fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
74 + fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
 --> src/generators/zod/filters.rs:6:84
  |
6 | pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
  |                                                                                    ^^^^^^ not found in `tera`
  |
help: consider importing one of these items
  |
1 + use crate::Result;
  |
1 + use std::fmt::Result;
  |
1 + use std::io::Result;
  |
1 + use std::result::Result;
  |
  = and 7 other candidates
help: if you import `Result`, refer to it directly
  |
6 - pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
6 + pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
  |

error[E0593]: function is expected to take 3 arguments, but it takes 2 arguments
   --> src/generators/base/templates.rs:32:43
    |
 32 |         tera.register_filter("escape_js", escape_js_filter);
    |              ---------------              ^^^^^^^^^^^^^^^^ expected function that takes 3 arguments
    |              |
    |              required by a bound introduced by this call
...
 52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
    | ----------------------------------------------------------------------------------------- takes 2 arguments
    |

Validate Examples

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:52:77
   |
52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                             ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
52 - fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
52 + fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:74:84
   |
74 | fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                                    ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
74 - fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
74 + fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
 --> src/generators/zod/filters.rs:6:84
  |
6 | pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
  |                                                                                    ^^^^^^ not found in `tera`
  |
help: consider importing one of these items
  |
1 + use crate::Result;
  |
1 + use std::fmt::Result;
  |
1 + use std::io::Result;
  |
1 + use std::result::Result;
  |
  = and 7 other candidates
help: if you import `Result`, refer to it directly
  |
6 - pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
6 + pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
  |

error[E0593]: function is expected to take 3 arguments, but it takes 2 arguments
   --> src/generators/base/templates.rs:32:43
    |
 32 |         tera.register_filter("escape_js", escape_js_filter);
    |              ---------------              ^^^^^^^^^^^^^^^^ expected function that takes 3 arguments
    |              |
    |              required by a bound introduced by this call
...
 52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
    | ----------------------------------------------------------------------------------------- takes 2 arguments
    |

Code Coverage

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:52:77
   |
52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                             ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
52 - fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
52 + fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
  --> src/generators/base/templates.rs:74:84
   |
74 | fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
   |                                                                                    ^^^^^^ not found in `tera`
   |
help: consider importing one of these items
   |
 1 + use crate::Result;
   |
 1 + use std::fmt::Result;
   |
 1 + use std::io::Result;
   |
 1 + use std::result::Result;
   |
   = and 7 other candidates
help: if you import `Result`, refer to it directly
   |
74 - fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
74 + fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>) -> Result<Value> {
   |

error[E0425]: cannot find type `Result` in crate `tera`
 --> src/generators/zod/filters.rs:6:84
  |
6 | pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
  |                                                                                    ^^^^^^ not found in `tera`
  |
help: consider importing one of these items
  |
1 + use crate::Result;
  |
1 + use std::fmt::Result;
  |
1 + use std::io::Result;
  |
1 + use std::result::Result;
  |
  = and 7 other candidates
help: if you import `Result`, refer to it directly
  |
6 - pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> tera::Result<Value> {
6 + pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>) -> Result<Value> {
  |

error[E0593]: function is expected to take 3 arguments, but it takes 2 arguments
   --> src/generators/base/templates.rs:32:43
    |
 32 |         tera.register_filter("escape_js", escape_js_filter);
    |              ---------------              ^^^^^^^^^^^^^^^^ expected function that takes 3 arguments
    |              |
    |              required by a bound introduced by this call
...
 52 | fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>) -> tera::Result<Value> {
    | ----------------------------------------------------------------------------------------- takes 2 arguments
    |

☠️ GLITCH TRACE · flaws & patches

🔴 CRIT · src/generators/base/templates.rs — The Result type has been removed from the tera crate in version 2.0. The code needs to be updated to use the Result type from the standard library instead.

🩹 patch:

use std::result::Result;

🔴 CRIT · src/generators/base/templates.rs — The filter functions in Tera 2.0 now require an additional argument. Update the escape_js_filter function signature to include the new argument.

🩹 patch:

fn escape_js_filter(value: &Value, _args: &HashMap<String, Value>, _context: &tera::Context) -> Result<Value>

🔴 CRIT · src/generators/base/templates.rs — Update the add_types_prefix_filter function signature to include the new argument required by Tera 2.0.

🩹 patch:

fn add_types_prefix_filter(value: &Value, _args: &HashMap<String, Value>, _context: &tera::Context) -> Result<Value>

🔴 CRIT · src/generators/zod/filters.rs — Update the to_zod_schema_filter function signature to include the new argument required by Tera 2.0.

🩹 patch:

pub fn to_zod_schema_filter(value: &Value, args: &HashMap<String, Value>, _context: &tera::Context) -> Result<Value>

🔴 VERDICT // FLATLINE — holding the netrunner-review gate. Patch required, choom.

"Time to jack out and install some fresh chrome, choom. This deck won't run with busted filters."
netrunner 🟪🔷

verdict: REQUEST_CHANGES · model: mistral-medium-2508

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant